<template>
  <div class="head">
    <i class="el-icon-arrow-left" @click="back"></i>
    {{this.$store.state.headText}}
  </div>
</template>
<script>
export default {
  methods: {
    back() {
      history.go(-1);
     
    },
  },
};
</script>
<style scoped>
/* 顶部 */
.head {
  width: 100%;
  height: 60px;
  background-color: deeppink;
  font-size: 20px;
  line-height: 60px;
  color: white;
}

.head i {
  float: left;
  margin-top: 13px;
}
/* 返回按钮 */
.el-icon-arrow-left {
  font-size: 30px;
  color: white;
}
</style>